//
//  MenuLayer.h
//  ATM Killer
//
//  Created by USoft on 7/23/14.
//
//

#ifndef MENU_LAYER_H
#define MENU_LAYER_H
#include "AbstractLayer.h"

class MenuLayer : public AbstractLayer {
    UG_PROPERTY_FULL(Layer*, mainLayer, MainLayer);
    UG_PROPERTY_FULL(MenuItemSprite*, resumeButton, ResumeButton);
    UG_PROPERTY_FULL(MenuItemSprite*, achievementButton, AchievementButton);
    UG_PROPERTY_FULL(MenuItemSprite*, statButton, StatButton);
    UG_PROPERTY_FULL(MenuItemSprite*, optionButton, OptionButton);
    UG_PROPERTY_FULL(MenuItemSprite*, continueButton, ContinueButton);
    UG_PROPERTY_FULL(MenuItemSprite*, conversionButton, ConversionButton);
    UG_PROPERTY_FULL(MenuItemSprite*, resetButton, ResetButton);
    UG_PROPERTY_FULL(MenuItemSprite*, autoButton, AutoButton);
private:
    Face* pauseBoard;
    UGLayerColor* grayLayer;
    virtual void onEnter();
    virtual void onExit();
    
    void initialize();
    void createLayers();
    void createLayersContent();
public:
    MenuLayer();
    ~MenuLayer();
    virtual void update(float dt);
    CREATE_FUNC(MenuLayer);
};

#endif /* defined(__ATM_Killer__MenuLayer__) */
